import axios from 'axios';

export function manualMoveApi(payload, callback, callError) {
  axios
      .post('/roboArm/automove', payload)
      .then(response => {
        callback(response)
      })
      .catch(error => {
        callError(error)
      });
}

export function stopRobotApi(payload, callback, callError) {
  axios
      .post('/roboArm/stop', payload)
      .then(response => {
        callback(response)
      })
      .catch(error => {
        callError(error)
      });
}